//
//  SearchFilterModel.h
//  much
//
//  Created by weijunjie on 2019/1/9.
//  Copyright © 2019年 iOS. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSUInteger, SearchFilterOrderType) {
    SearchFilterOrderNoneType, // 无
    SearchFilterOrderDESCType, // 降序
    SearchFilterOrderASCType // 升序
};

typedef NS_ENUM(NSUInteger, SearchFilterOrderFieldType) {
    SearchFilterOrderFieldNoneType, // 无
    SearchFilterOrderFieldComprehensiveType, // 不用
    SearchFilterOrderFieldCompositeType, // 综合
    SearchFilterOrderFieldSaleNumberType, // 销量
    SearchFilterOrderFieldNewestType, // 新品
    SearchFilterOrderFieldPriceType, // 价格
    SearchFilterOrderFieldEmployeePriceType, // 未知
};
@interface SearchFilterModel : NSObject

/** 搜索关键字 */
@property (nonatomic, copy) NSString *keyWord;
/** 搜索排序,用于取值 */
@property (nonatomic, copy) NSString *orderDir;
/** 搜索排序类型,用于设置 */
@property (nonatomic, assign) SearchFilterOrderType orderType;
/** 排序字段,用于取值 */
@property (nonatomic, copy) NSString *orderField;
/** 排序字段类型,用于设置 */
@property (nonatomic, assign) SearchFilterOrderFieldType orderFieldType;
/** 当前页码 */
@property (nonatomic, assign) NSInteger pageIndex;
@end

NS_ASSUME_NONNULL_END
